import { CircularProgress } from '@material-ui/core';
import React from 'react';
export const Loading = ({ loading }: { loading: boolean }) => {
  return loading ? (
    <div
      style={{
        display: 'flex',
        justifyContent: 'center',
        alignItems: 'center',
      }}
    >
      <CircularProgress size={60} style={{ marginTop: '100px' }} />
    </div>
  ) : (
    <></>
  );
};
